<?php
    include_once('includes/common.inc.php');
    include_once('includes/db.inc.php');
    include_once('dal/bookDAL.php');
 
    $_title = 'Danh mục sách';
    
    $arrData = array();
    $error_message ='';
    if(isset($_GET['cid']) and $_GET['cid']!=''){
        $cid = $_GET['cid'];
        $bookDAL = new BookDAL();
        $arrData = $bookDAL->get_books_by_cate($cid);
        $error_message = $arrData['error_message'];
    }else{
        $error_message="Không tìm thấy sách nào ở trang này.";
    }
    
    
    include_once('views/home/header.php');
    
    include_once('views/home/catedetail.php');
    
    include_once('views/home/right_content.php');
    
    include_once('views/home/footer.php');
    

?>